package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 sys_novel_order
 *
 * @author chj
 * @date 2022-11-09
 */
public class SysNovelOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String orderNumber;

    /** 订单名称 */
    @Excel(name = "订单名称")
    private String orderName;

    /** 订单金额 */
    @Excel(name = "订单金额")
    private BigDecimal orderMoney;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String orderPayType;

    /** 订单支付时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "订单支付时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date orderPayTime;

    /** 订单状态 1=已支付 2=待支付 3=未支付 4=支付异常 */
    @Excel(name = "订单状态 1=已支付 2=待支付 3=未支付 4=支付异常")
    private String orderStatus;

    /** 订单创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "订单创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date orderAddtime;

    /** 订单备注 */
    @Excel(name = "订单备注")
    private String orderNote;

    /** 用户名 */
    @Excel(name = "用户名")
    private String orderUsername;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setOrderNumber(String orderNumber)
    {
        this.orderNumber = orderNumber;
    }

    public String getOrderNumber()
    {
        return orderNumber;
    }
    public void setOrderName(String orderName)
    {
        this.orderName = orderName;
    }

    public String getOrderName()
    {
        return orderName;
    }
    public void setOrderMoney(BigDecimal orderMoney)
    {
        this.orderMoney = orderMoney;
    }

    public BigDecimal getOrderMoney()
    {
        return orderMoney;
    }
    public void setOrderPayType(String orderPayType)
    {
        this.orderPayType = orderPayType;
    }

    public String getOrderPayType()
    {
        return orderPayType;
    }
    public void setOrderPayTime(Date orderPayTime)
    {
        this.orderPayTime = orderPayTime;
    }

    public Date getOrderPayTime()
    {
        return orderPayTime;
    }
    public void setOrderStatus(String orderStatus)
    {
        this.orderStatus = orderStatus;
    }

    public String getOrderStatus()
    {
        return orderStatus;
    }
    public void setOrderAddtime(Date orderAddtime)
    {
        this.orderAddtime = orderAddtime;
    }

    public Date getOrderAddtime()
    {
        return orderAddtime;
    }
    public void setOrderNote(String orderNote)
    {
        this.orderNote = orderNote;
    }

    public String getOrderNote()
    {
        return orderNote;
    }
    public void setOrderUsername(String orderUsername)
    {
        this.orderUsername = orderUsername;
    }

    public String getOrderUsername()
    {
        return orderUsername;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNumber", getOrderNumber())
            .append("orderName", getOrderName())
            .append("orderMoney", getOrderMoney())
            .append("orderPayType", getOrderPayType())
            .append("orderPayTime", getOrderPayTime())
            .append("orderStatus", getOrderStatus())
            .append("orderAddtime", getOrderAddtime())
            .append("orderNote", getOrderNote())
            .append("orderUsername", getOrderUsername())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
